#include "SMPPLanguageIndicator.hpp"

using namespace smpp::pdu;

LanguageIndicator::LanguageIndicator(const quint8 nValue):
TLV(TLVtags::TAG_LANGUAGE_INDICATOR,1),_Value(nValue){}

LanguageIndicator::LanguageIndicator(
const LanguageIndicator &nLanguageIndicator):
TLV(nLanguageIndicator),_Value(nLanguageIndicator.getValue()){}

bool LanguageIndicator::operator ==(
	const LanguageIndicator &nLanguageIndicator) const{
	return (TLV::operator == (nLanguageIndicator) && 
			_Value == nLanguageIndicator.getValue());
}

bool LanguageIndicator::operator !=(
	const LanguageIndicator &nLanguageIndicator) const{
	return !this->operator == (nLanguageIndicator);
}

LanguageIndicator &LanguageIndicator::operator = (
	const LanguageIndicator &nLanguageIndicator){
	if(*this == nLanguageIndicator)
		return *this;
	TLV::operator = (nLanguageIndicator);
	_Value = nLanguageIndicator.getValue();
	return *this;
}

void LanguageIndicator::setValue(const quint8 nValue){
	_Value = nValue;
}

const quint8 LanguageIndicator::getValue() const{
	return _Value;
}
